<?php
require("../../../config/connect.php");
require("../../../public/common.php");

// 取数量
$row = mysql_fetch_assoc(mysql_query("select count(*) as tmp from tmp_zhufu"));
$allCount = $row["tmp"];
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name ="keywords" content="免费短信,2012祝福,购物兔,购物兔返现网,购物兔省钱浏览器,聚划算返利,返现网,返利网,返利,淘宝网返利,商城返利,京东返利,淘宝网女装返利,淘宝网女鞋打折,淘宝网男装促销,淘宝网包包秒杀,淘宝化妆品赠送"/>
<meta name="Description" content="购物兔是国内最知名的购物省钱浏览器，返现最快，当天内直接到账，返现最安全，100%不漏单；无论您在淘宝网，还是京东、当当等其他商城购物，即使是促销价也能返现，实现折上再打折，真正省钱，是您网络购物省钱的首选！" />
<title>免费2012元旦祝福短信，快来挑一个吧，亲！购物兔给力奉献！</title>
<script language="javascript" src="../../js/jquery.min.js"></script>
<style type="text/css">
body, div, dl, dt, dd, ul, ol, li, p, h1, h2, h3, h4, h5, h6, form, fieldset, legend, input, textarea, blockquote, th, td{margin: 0;padding: 0;}
body { font-size:12px; background:url(../../activity/img/carnival/bg.png);}
img{border:0 none; vertical-align:top;}
table{border-collapse: collapse;border-spacing: 0;font-size: 14px;}
fieldset, img{border: 0;}
input, textarea, select, button{padding: 1px;font-size: 14px;}
ol, ul{list-style: none;}
a{color:#333; font-size:12px; text-decoration:none;}
a:hover{color:#F60 !important; text-decoration:underline;}
.hid { display:none;}
#lh{margin:16px 0 10px;word-spacing:3px}
#lh a,.Bound a { color:#fff;}
#cp, #cp a { color:#fff;}
/*******/
#content { width:1005px; margin:0 auto; clear:both; overflow:hidden;}
#topWaibu { background:url(../img/sms/top_bg.jpg) repeat-x;}
.header { height:300px; width:1005px; clear:both; padding-top:50px; position:relative; margin:0 auto;}
.header .nana {background:url(../img/sms/top.jpg) no-repeat center top; width:1005px; height:260px; margin:0 auto;}
.header .nana .logo { width:210px; height:90px; margin:0 0 0 60px; overflow:hidden; line-height:500px; display:block;}
.dengleft,.dengright { background:url(../img/sms/denglong.jpg) no-repeat; position:absolute; left:-115px; top:0; width:173px; height:284px;}
.dengright { right:-115px; left:auto;}
.theleft { width:696px; float:left;}
.down { height:88px; width:100%;}
.down .s1 { background:url(../img/sms/down.jpg) no-repeat; width:243px; height:81px; margin-left:60px; float:left;}
.down .s1 a { width:222px; height:60px; overflow:hidden; line-height:500px; display:block;}
.down .s2 { color:#FFF; float:left;}
.dusnxin { background:url(../img/sms/top_a.jpg) no-repeat; width:100%; height:118px;}
.dusnxin .title-tab,.dusnxin .title-egao { height:40px; padding-left:102px;}
.dusnxin .title-tab li,.dusnxin .title-egao li { background:url(../img/sms/title-an.png) no-repeat -6px 1px; width:160px; height:40px; float:left; cursor:pointer;}
.dusnxin .title-tab li.s2 { background-position:-166px 1px;}
.dusnxin .title-egao li.s1 { background-position:-6px -41px;}
.dusnxin .title-egao li.s2 { background-position:-166px -41px;}
.neirong { background-color:#FFFC9F; position:relative; clear:both;}
.neirong .left-zhe { width:76px; position:absolute; left:-28px; top:0;}
.left-zhe .left-zhe-bg {background:url(../img/sms/z_zhe_bg.jpg) repeat-y; width:76px; height:610px;}
.left-zhe .left-zhe-top {background:url(../img/sms/z_zhe_top.jpg) no-repeat; width:76px; height:88px;}
.left-zhe .left-zhe-btom {background:url(../img/sms/z_zhe_btom.jpg) no-repeat; width:76px; height:77px;}
.duan_nei {width:648px; height:780px; padding-left:48px;}
.duan_nei ul { padding-top:20px;}
.duan_nei li { border-bottom:1px solid #E2DF8D; min-height:94px; clear:both; width:565px; padding-left:45px; background:url(../img/sms/shuzi.jpg) no-repeat; position:relative; z-index:11;}
.duan_nei li p { padding:15px 0; line-height:22px; width:460px; text-indent:20px; float:left;}
.duan_nei li .btn {background:url(../img/sms/fasong-btn.gif) no-repeat; margin:15px 0 0 5px; float:left; width:100px; height:37px; display:block; overflow:hidden;}
.duan_nei li#sss1,.duan_nei li#sss9 { background-position:0 20px;}
.duan_nei li#sss2,.duan_nei li#sss10 { background-position:0 -82px;}
.duan_nei li#sss3,.duan_nei li#sss11 { background-position:0 -183px;}
.duan_nei li#sss4,.duan_nei li#sss12 { background-position:0 -290px;}
.duan_nei li#sss5,.duan_nei li#sss13 { background-position:0 -400px;}
.duan_nei li#sss6,.duan_nei li#sss14 { background-position:0 -512px;}
.duan_nei li#sss7,.duan_nei li#sss15 { background-position:0 -623px;}
.duan_nei li#sss8,.duan_nei li#sss16 { background-position:0 -752px;}
.neirong_di {background:url(../img/sms/dibu_a.jpg) no-repeat center bottom; height:85px; width:100%; overflow:hidden; clear:both;}
/**theright**/
.theright { float:left; width:309px;}
.delu { background:url(../img/sms/right-top.jpg) no-repeat 1px 0; height:164px;}
.liuc { background:url(../img/sms/right-top-a.jpg) no-repeat; height:453px; position:relative;}
.liuc a { position:absolute; right:30px; bottom:22px; text-decoration:underline; font-weight:bold; font-size:14px; color:#B8042E;}
.tubiduihuan { background:#FFFC9F; width:291px; border-left:1px solid #E8B27D; margin-left:8px;}
.tubiduihuan .title { padding-left:10px;}
.tubiduihuan .title h2 {background: url(../../activity/img/carnival/rule_b_title.gif) no-repeat scroll 0 -40px;color:#FFFFFF; font-weight:normal;text-align:center; width:111px; font-size:12px; height:28px; line-height:28px;}
/**/
.pu_boyd_mid { overflow:hidden; padding-bottom:15px; width:291px; background:#FFFC9F;}
.ul_p_list { overflow:hidden; padding:0 5px;}
.ul_p_list li { width:140px; float:left; margin-top:15px;}
.ul_p_list .li_pic { width:120px; height:120px; overflow:hidden; padding:2px; background:#FFF; border:1px solid #e3e3e3; vertical-align:middle; margin:0 auto;}
.ul_p_list .li_pic img { max-width:120px; height:120px; vertical-align:middle;}
.ul_p_list .li_title,.ul_p_list .li_money,.ul_p_list .li_num { width:126px; height:20px; line-height:20px; margin:0 auto; text-align:center; overflow:hidden;}
/*.ul_p_list .li_money,.ul_p_list .li_num { text-align:left; text-indent:10px;}*/
#zhez {background-color:#000000;height:1425px;left:0;filter:alpha(opacity=70);opacity:0.7;overflow:hidden;position:absolute;top:0;width:100%;z-index:900; display:none;}
/*#mustSee { width:544px; height:302px; position:fixed; *position:absolute; z-index:99999; top:50%; left:40%; margin-top:-100px; margin-left:-100px;}*/
#mustSee { width:544px; height:302px; position:absolute; z-index:99; top:-113px; left:70px;}
#mustSee .zuo { background:url(../img/sms/ceng-zy.gif) no-repeat; width:15px; height:302px; float:left;}
#mustSee .you { background:url(../img/sms/ceng-zy.gif) no-repeat -15px 0; width:15px; height:302px; float:left;}
#mustSee .mid { background:url(../img/sms/zhe-zz.jpg) repeat-x; width:510px; height:302px; float:left;}
#mustSee .mid .lim { width:480px; margin:10px auto;}
#mustSee .mid .lim p { padding:5px 0; text-indent:0;}
#mustSee .mid .lim p span { color:#E0012E;line-height:25px; padding:0 5px; display:inline-block;}
#mustSee .mid .lim p .queren-btn { width:143px; height:35px; background:url(../img/sms/queren.gif) no-repeat; display:block; overflow:hidden; line-height:500px; margin:0 auto; border:0; cursor:pointer;}
.duan_nei .fucengzindex { z-index:999;}
</style>
</head>
<body>
<div id="topWaibu">
	<div class="header">
    	<div class="nana">
        	<a href="http://www.gouwutu.com/" class="logo" target="_blank" title="购物兔返现网—返现就这么简单">购物兔返现网—返现就这么简单</a>
        </div>
    	<div class="dengleft"></div>
        <div class="dengright"></div>
    </div>
    <div id="content">
    	<div class="theleft">
       		<div class="down">
            	<div class="s1"><a href="http://www.gouwutu.com/download.php?opt=zip" target="_blank" title="下载购物兔">下载购物兔</a></div>	
                <div class="s2">
                    <p style="line-height:20px; padding-left:5px;">版本号：2.12.8.86<br>更新日期：2011-12-8<br>支持系统：XP/Vista/Win7</p>
                    <p style="background:#FFF; width:160px;"><iframe width="160" scrolling="no" height="16" frameborder="0" align="middle" src="http://www.gouwutu.com/download.php?opt=view" name="zhufuyu" marginwidth="0" marginheight="0" allowtransparency="true"></iframe></p>
                </div>
            </div>
            <div class="dusnxin">
            	<div style="height:78px;">
                	<p style="width:169px; height:29px; line-height:29px; font-size:18px; padding:37px 0 0 100px; text-align:center; font-weight:bold; color:#FFF;"><?php echo ($allCount*2)+1244; ?></p>
                </div>
                <div class="title-tab" id="titleduanx">
                	<ul>
                    	<li class="s1" onClick="clickJieri();"></li>
                        <li class="s2" onClick="clickEgao();"></li>
                    </ul>
                </div>
            </div>
            <div class="neirong">
            	<div class="left-zhe">
                	<div class="left-zhe-top"></div>
                    <div class="left-zhe-bg"></div>
                    <div class="left-zhe-btom"></div>
                </div>
            	<div class="duan_nei">
                	<ul id="jierizf">
                    	<li id="sss1">
                        	<p>希望这是你收到的第一条祝福，比我早的统统和谐掉；煽情的话放在心里，要低调；我发的不是短信，是祝福</p>
                            <a href="javascript:void(0);" onClick="clickMag(1);" class="btn"></a>
                        </li>
                        <li id="sss2">
                        	<p>你愿或不愿意，兔年都已过去。你想或不想经历，新的龙年都已到来。你信或不信，我们的生活都将会越来越好！</p>
                            <a href="javascript:void(0);" onClick="clickMag(2);" class="btn"></a>
                        </li>
                        <li id="sss3">
                        	<p>往日金戈铁马，今日英姿勃发，踏平坎坷羁绊，一路朝歌彩霞；新年亲人牵挂，祝愿事业腾达，富贵共享海角天涯</p>
                            <a href="javascript:void(0);" onClick="clickMag(3);" class="btn"></a>
                        </li>
                        <li id="sss4">
                        	<p>祝福加祝福是很多个祝福，祝福减祝福是祝福起点，祝福乘祝福是无限个祝福，祝福除祝福是唯一的祝福，祝福你</p>
                            <a href="javascript:void(0);" onClick="clickMag(4);" class="btn"></a>
                        </li>
                        <li id="sss5">
                        	<p>送你一件外套，前面是平安，后面是幸福，吉祥是领子，如意是袖子，快乐是扣子，穿上吧，让它与你相伴每一天</p>
                            <a href="javascript:void(0);" onClick="clickMag(5);" class="btn"></a>
                        </li>
                        <li id="sss6">
                        	<p>声声祝福，丝丝情谊，串串思念，化作一份礼物，留在你的心田，祝新年快乐，万事如意！</p>
                            <a href="javascript:void(0);" onClick="clickMag(6);" class="btn"></a>
                        </li>
                        <li id="sss7">
                        	<p>新年到，愿君:百事可乐！万事芬达！天天娃哈哈！月月乐百事！年年高乐高！心情似雪碧！永远都醒目！</p>
                            <a href="javascript:void(0);" onClick="clickMag(7);" class="btn"></a>
                        </li>
                        <li id="sss8">
                        	<p>酒越久越醇，水越流越清，世间沧桑越流越淡，朋友情谊越久越真。衷心祝福吾友度过一个祥和美满的新年！</p>
                            <a href="javascript:void(0);" onClick="clickMag(8);" class="btn"></a>
                        </li>
                    </ul>
                    <ul id="egaoduanxin" style="display:none;">
                    	<li id="sss9">
                        	<p>新年到，吃大餐；少喝酒，多吃菜；够不着，站起来；有人敬，耍耍赖；吃不了，兜回来！</p>
                            <a href="javascript:void(0);" onClick="clickMag(9);" class="btn"></a>
                        </li>
                        <li id="sss10">
                        	<p>不许动！举起手来，还在笑，说你呢！快放下手机，双手抱头靠墙站好，仔细给我听着：祝你新春快乐！</p>
                            <a href="javascript:void(0);" onClick="clickMag(10);" class="btn"></a>
                        </li>
                        <li id="sss11">
                        	<p>先申明：未经许可，不得对该祝福进行打折消费。一经发现，本人将强行不间断祝福，直到你完全想有该祝福为止</p>
                            <a href="javascript:void(0);" onClick="clickMag(11);" class="btn"></a>
                        </li>
                        <li id="sss12">
                        	<p>￥￥￥￥￥￥￥￥￥￥当你收到这些钱的符号时，就表示你已接到财神的祝福，这将预示着你今年一定会发大财！</p>
                            <a href="javascript:void(0);" onClick="clickMag(12);" class="btn"></a>
                        </li>
                        <li id="sss13">
                        	<p>2012来了，送你一张诺亚方舟的船票，票号是：88888888,请对号入座，开往幸福健康站！中途不得下车</p>
                            <a href="javascript:void(0);" onClick="clickMag(13);" class="btn"></a>
                        </li>
                        <li id="sss14">
                        	<p>朋友是天，朋友是地，有了朋友可以顶天立地。朋友是风，朋友是雨，有了朋友可以呼风唤雨，祝新年快乐！</p>
                            <a href="javascript:void(0);" onClick="clickMag(14);" class="btn"></a>
                        </li>
                        <li id="sss15">
                        	<p>祝你新的一年里大红大紫，大吉大利，这是我给你的大大礼物，你就给我回个小红包吧，支票你来签，数字我来写</p>
                            <a href="javascript:void(0);" onClick="clickMag(15);" class="btn"></a>
                        </li>
                        <li id="sss16">
                        	<p>清蒸鱼，糖醋鱼，水煮鱼…鱼乐无穷，如鱼得水，鱼目混珠，尔鱼我炸，鱼无伦次，祝你新年快乐年年有余！</p>
                            <a href="javascript:void(0);" onClick="clickMag(16);" class="btn"></a>
                        </li>
                    </ul>
                </div>
                <div class="neirong_di"></div>	
            </div>
        </div>
        <div class="theright">
       		<div class="delu">
            	<div style="line-height:22px; text-indent:30px; font-size:12px; color:#fff; padding:10px 13px;">购物兔是冰峰科技旗下的一款网购专用返现浏览器,支持百家商城返现，为您省下过年回家的车票，赶紧下载使用吧！</div>
            </div>
            <div class="liuc"><a href="http://www.gouwutu.com/faq/help_faq1_01.html" target="_blank"; title="更多详情">更多详情</a></div>
            <div class="tubiduihuan">
            	<div class="title"><h2>兔币兑换商品</h2></div>
                <div class="pu_boyd_mid">
                    <ul class="ul_p_list">
                    <?php
					$sql = "select * from gwt_dh_goods where dhtag!='真情回馈' and dhnumber>0 order by rand(now()) LIMIT 4";
					$result2 = mysql_query($sql);
					while( $result2 && $row2 = mysql_fetch_assoc( $result2 ))
					{
					?>
						<li>
                            <p class="li_pic"><a title="<?php echo $row2["dhtitle"]; ?>" href="http://www.gouwutu.com/dh/index.php?catalog=<?php echo urlencode($row2["dhtag"]); ?>&gid=<?php echo $row2["id"]; ?>"><img alt="<?php echo $row2["dhtitle"]; ?>" src="<?php echo $row2["dhpic"]; ?>"></a></p>
                            <p class="li_title"><a title="<?php echo $row2["dhtitle"]; ?>" href="http://www.gouwutu.com/dh/index.php?catalog=<?php echo urlencode($row2["dhtag"]); ?>&gid=<?php echo $row2["id"]; ?>"><?php echo $row2["dhtitle"]; ?></a></p>
                            <p class="li_money">需要兔币：<font color="#FF0000"><?php echo $row2["tumoney"]; ?></font><img width="16" height="16" alt="兔币" src="http://www.gouwutu.com/dh/images/jin.gif" title="兔币"></p>
                            <p class="li_num">剩余数量：<font color="#FF0000"><?php echo $row2["dhnumber"]; ?></font></p>
                        </li>
                  	<?php
					}
					?>     
                   	</ul>
                </div>
            </div>
            <div style="background: url(../img/sms/dibu_b.jpg) no-repeat; height:9px; width:292px; margin-left:8px; overflow:hidden; clear:both;"></div>
        </div>
    </div>
</div>
<div id="zhez" style="display:none;"></div>
<div id="mustSee" style="display:none">
	<div class="zuo"></div>	
    <div class="mid">
    	<form id="RegId" method="get" onsubmit="return checkDuanxin();" >
        <div class="lim">
        	<a href="javascript:void(0);" onclick="clickClose()" title="关闭" style="float:right; width:20px; height:20px; display:block;"><img src="../img/sms/close.jpg" alt="关闭" /></a>
            <p style="float:left;"><span>您的称呼：</span><input type="text" value="" id="nameMsg" name="name" style=" width:200px; line-height:25px; border:1px solid #ccc; margin-left:5px; padding:2px;"></p>
            <p style="clear:both;"><span>输入要发送的手机号码</span>（提示：多个手机号用逗号隔开，例：13428867312,18128867312）</p>
            <p><textarea id="phoneMsg" name="phone" wrap="SOFT" tabindex="0" dir="ltr" spellcheck="false" autocapitalize="off" autocomplete="off" autocorrect="off" style="overflow-y:hidden; overflow-x:auto; width:470px; height:130px;" onkeyup="this.value=this.value.replace(/，/g, ',');" ></textarea></p>
            <input type="hidden" value="" id="duanMsg" name="msg">
            <p><input type="submit" value="" class="queren-btn" name="Site_Submit" id="Site_Submit"></p>
        </div>
        </form>
    </div>
    <div class="you"></div>	
</div>
</body>
</html>
<script language="javascript">
function clickJieri()
{
	$("#titleduanx").attr("class","title-tab");
	document.getElementById("egaoduanxin").style.display="none";
	document.getElementById("jierizf").style.display="block";
}
function clickEgao()
{
	$("#titleduanx").attr("class","title-egao");
	document.getElementById("egaoduanxin").style.display="block"; //setAttribute
	document.getElementById("jierizf").style.display="none";
}
function clickMag(id)
{
	//alert("sss"+id);
	$(".duan_nei li").removeClass("fucengzindex");
	var mustSee = document.getElementById("mustSee");
	document.getElementById("sss"+id).appendChild(mustSee);	//zhez
	$("#sss"+id).addClass("fucengzindex");
	mustSee.style.display="block";
	document.getElementById("duanMsg").setAttribute("value",id);
}
function clickClose()
{
	document.getElementById("mustSee").style.display="none";
	//$(".duan_nei li").detach("#mustSee");
	$(".duan_nei li").removeClass("fucengzindex");
}
function checkStringLength(words) {
    var sum = 0;
    for (var i = 0; i < words.length; ++i) {
        var c = words.charCodeAt(i);
        if ((c >= 0x0001 && c <= 0x007e) || (0xff60 <= c && c <= 0xff9f)) {
            sum++;
        } else {
            sum += 2;
        }
    }
    return sum;
}
function checkDuanxin()
{
	var nameMsg= document.getElementById("nameMsg").value.replace(/(^\s*)|(\s*$)/g, "");
	if(nameMsg.length == 0){
		alert('请别让我瞎猜您是谁！');
        return false;
	}
	var nameNum = checkStringLength(nameMsg);
	if(nameNum > 8){
		alert('哇！您的称呼好长哦，能精简一点吗。或者四个字以下！');
        return false;
	}
	//replace(/，/g, ',')
	var patrn=/^[0-9]/;
	var srange = document.getElementById("phoneMsg").value;
	srange=srange.replace(",","");
	//alert(srange);
	if(srange == null || srange == "" || !patrn.exec(srange)){
    	alert('请正确填写你要发送的手机号码!');
     	return false;
     }
	
	//
	var url = "http://www.gouwutu.com/new/doc/sms/zhufu.php?";
	url += "name=" + encodeURIComponent(nameMsg);
	url += "&phone=" + document.getElementById("phoneMsg").value;
	url += "&msg=" + document.getElementById("duanMsg").value;
	$.ajax({url: url,
			async: false,
			success:function(result){
//			alert(res);
			if (result == "0")
				alert("恭喜，您的祝福已传达给对方。\r\n别忘了邀请您的好友一起来免费发短信哦。");
			else if(result == "-1")
				alert("尊敬的用户您好，每发的短信太多了哦，停下来休息一下吧。");
			else if(result == "-2")
				alert("尊敬的用户您好，每发的短信太多了哦，停下来休息一下吧。");
			else
				alert("发送失败！请联系客服");
		   },
		   failure:function(result){
			   alert("发送失败！请联系客服");
		   }
		})
	//document.getElementById("").style.display="none";
	document.getElementById("mustSee").style.display="none";

	return false;	
}
</script>

<!-- JiaThis Button BEGIN -->
<script type="text/javascript">var jiathis_config = {data_track_clickback:true};</script>
<script type="text/javascript" src="http://v2.jiathis.com/code/jiathis_r.js?move=0&amp;btn=r5.gif&amp;uid=904300" charset="utf-8"></script>
<!-- JiaThis Button END -->

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-20984072-1");
pageTracker._trackPageview();
} catch(err) {}</script>

<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7eb75a7b189f4a709dead85bc20eb0dd' type='text/javascript'%3E%3C/script%3E"));
</script>